Component({
  options: {
    multipleSlots: true // 在组件定义时的选项中启用多slot支持
  },
  properties: {
    showScreen: Boolean, //是否显示模态框
    left:Boolean,
  },
  data: {
    showScreen: false,
  },
  methods: {
    closeModel,
    resetScreen,
    submitScreen,
  },
})

function closeModel() {
  const that = this;
  that.setData({
    showScreen: false
  })
  that.triggerEvent('closeModel');
}

function resetScreen(){
  const that = this;
  that.triggerEvent('resetScreen');
}

function submitScreen() {
  const that = this;
  that.setData({
    showScreen: false
  })
  that.triggerEvent('submitScreen');
}